package Review07;

/**
 *使用Class对象的newInstance()方法来创建Class对象对应类的实例
 */
public class Test {
    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
            Class clazz = Student.class;
            Object obj = clazz.newInstance();
            Student student = (Student) obj;

    }
}
